<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/basproject/basicdata/Bas_RouteControl.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/basproject/basicdata/Bas_RouteControl.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "Bas_RouteControl",
        setup() {
            const table = ref({
                key: "RouteControlId",
                footer: "Foots",
                cnName: "工艺步骤",
                name: "basicdata/Bas_RouteControl",
                newTabEdit: false,
                url: "/Bas_RouteControl/",
                sortName: "StepSequence"
            });
            const editFormFields = ref({"StepSequence":"","CurrentGroupId":"","ProductStuffix":"","Remarks":""});
            const editFormOptions = ref([[{"title":"工站顺序","field":"StepSequence","type":"number"}],
                              [{"dataKey":"BASE_Group","data":[],"title":"工站","field":"CurrentGroupId","type":"select"},
                               {"title":"产品后缀--毛坯,压坯等","field":"ProductStuffix"}],
                              [{"title":"备注","field":"Remarks","colSize":12,"type":"textarea"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:"StepSequence",title:"工站顺序",type:"int",link:true,width:110,showOverflowTooltip:true,align:"left"},
                       {field:"RouteNameId",title:"当前工艺",type:"bigint",bind:{ key:"BASE_Route",data:[]},width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"RouteControlId",title:"主键ID",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"CurrentGroupId",title:"工站",type:"bigint",bind:{ key:"BASE_Group",data:[]},width:110,showOverflowTooltip:true,align:"left"},
                       {field:"NextGroupId",title:"下一工站",type:"bigint",bind:{ key:"BASE_Group",data:[]},width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ProductStuffix",title:"产品后缀--毛坯,压坯等",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效",type:"int",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建用户",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改用户",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:150,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
